import {
	apiResquest
} from '@/utils/http.js'

// 头像 药品上传
export const medicalFastdfs = (params) => {
	return apiResquest({
		url: 'user/app/medicalFastdfs',
		method: 'post',
		data:params
	})
}

// 头像 药品删除
export const deleteMedicalFastdfs = (params) => {
	return apiResquest({
		url: 'user/app/deleteMedicalFastdfs',
		method: 'post',
		data:params
	})
}

// 药物品类
export const drugCategorylist = (params) => {
	return apiResquest({
		url: 'user/app/drugCategorylist',
		method: 'get',
		data:params
	})
}

// 就医时间列表
export const medicalDatelist = (params) => {
	return apiResquest({
		url: 'user/app/medicalDatelist',
		method: 'get',
		data:params
	})
}

// 就医原因列表
export const medicalReasonslist = (params) => {
	return apiResquest({
		url: 'user/app/medicalReasonslist',
		method: 'get',
		data:params
	})
}

// 药物频率
export const drugFrequencylist = (params) => {
	return apiResquest({
		url: 'user/app/drugFrequencylist',
		method: 'get',
		data:params
	})
}

// 用户关系
export const relationshiplist = (params) => {
	return apiResquest({
		url: 'user/app/relationshiplist',
		method: 'get',
		data:params
	})
}

// 图片上传
export const uploadImg = (params) => {
	return apiResquest({
		url: 'user/app/upload',
		method: 'post',
		data:params
	})
}

// 证件识别
export const distinguish = (params) => {
	return apiResquest({
		url: 'user/app/getCertificateIdentification',
		method: 'post',
		data:params
	})
}

// oss  token
export const getUploadToken = (params) => {
	return apiResquest({
		url: 'user/app/getUploadToken',
		method: 'get',
		data:params
	})
}